import { defineStore } from 'pinia'

export const useCourseStore = defineStore('course', {
    state: () => ({
        courses: []
    }),

    actions: {
        setCourses(courses) {
            this.courses = courses
        }
    },

    getters: {
        getCourses: (state) => state.courses
    }
})
